package Day3;

import java.util.Scanner;

public class TestScholar {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Scholar scholar = new Scholar();
        scholar.ClassName = "Java83班";
        scholar.TeacherName = "李老师";
        scholar.Kai = "2023-2-20";
        scholar.Show();
        System.out.print("北大青鸟春季招生啦！！\n");
        String choose = "";
        while (2>1){
            System.out.print("请选择报名还是查看83班同学或是退出：");
            choose=sc.next();
            if (choose.equals("报名")){
                System.out.print("请输入报名的学生姓名：");
                String name = sc.next();
                scholar.add(name);
                System.out.println("报名成功");
            }else if (choose.equals("查看")){
                scholar.Show();
            }else if (choose.equals("退出")){
                break;
            }
        }
        System.out.println("春季招生结束");
    }
}
